/**
 * Copyright 2008 Benjamin Possolo
 * 
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 * 
 *     http://www.apache.org/licenses/LICENSE-2.0
 * 
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
package org.javenue.util.process;

/**
 * An exception that represents an error interacting with the process state persistence store.
 * 
 * @see ProcessStatePersister
 * @author Benjamin Possolo
 * <p>Created on Dec 29, 2006
 */
public class PersistenceException extends RuntimeException {

	/**
	 * Serial Version UID defined to avoid warning.
	 */
	private static final long serialVersionUID = 1L;

	/**
	 * Constructor that sets exception message.
	 * 
	 * @param message a simple message
	 */
	public PersistenceException(String message) {
		super(message);
	}

	/**
	 * Constructor that sets the exception message and cause.
	 * 
	 * @param message a simple message
	 * @param cause the cause of this exception
	 */
	public PersistenceException(String message, Throwable cause) {
		super(message, cause);
	}
}
